from urllib.request import *

from lxml import etree


def New_Page_Info(new_page):
	dom = etree.HTML(new_page)
	new_urls = dom.xpath('//a/@href')
	print(dom.xpath('text()'))
	return [e for e in new_urls if 'http' in e and 'docker' in e]


docker_url = 'https://spring.io'
with urlopen(docker_url) as result:
	data = result.read()
	print('=============================================================')
	print(New_Page_Info(data))
